package com.xiaoyu.commonlib.network;

import com.xiaoyu.commonlib.CommonPlug;

import java.util.HashMap;

public class NetworkManager {

    /**
     * 登录接口
     *
     * @param usertel  手机号
     * @param pas      密码
     * @param listener
     */
    public static void login(String usertel, String pas, CommonHttpResponser listener) {
        HashMap<String, String> params = new HashMap<>();
        params.put("usertel", usertel);
        params.put("pas", pas);
        BaseNetworkManager.getInstance().sendRequest(BaseNetworkManager.HTTP_REQUEST_TYPE.POST,
                NetworkConstants.LOGIN_URL_CLIENT, params, listener);
    }

    public static  boolean isClientApp(){
        return "com.xiaoyu.merchant".equals(CommonPlug.getAppContext().getPackageName());
    }


}
